package com.sbd.service;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author yuanzheng
 * Service注释可以被扫描并注册到注册中心
 * Component使用duboo后尽量不要使用mvc的Service而是用Component替代
 */
@Service
@Component
public class TicketServiceImpl implements TicketService {
    @Override
    public String getTicket() {
        return "Test TicketServiceImpl getTicket()-" + new Date();
    }
}
